import home from './pages/home'
import about from './pages/about'
import article from './pages/article'
import archive from './pages/archive'
import apply from './pages/apply'
import welcome from './pages/welcome'
import welcome2 from './pages/welcome2'
import welcome3 from './pages/welcome3'
import welcome4 from './pages/welcome4'
import index from './pages/index'

const routes = [
    {
        path:'/',
        component:welcome4
    },
    {
        path:'/welcome',
        name:'welcome',
        component:welcome
    },
    {
        path:'/welcome2',
        name:'welcome2',
        component:welcome2
    },
    {
        path:'/welcome3',
        name:'welcome3',
        component:welcome3
    },
    {
        path:'/welcome4',
        name:'welcome4',
        component:welcome4
    },
    {
        path:'/index',
        component:index,
        children:[
            {
                path:'/',
                component:home
            },
            {
                path:'home',
                name:'home',
                component:home
            },
            {
                path:'about',
                name:'about',
                component:about
            },
            {
                path:'archive/:tag?',
                name:'archive',
                component:archive
            },
            {
                path:'tag/:name',
                name:'tag',
                component:archive
            },
            {
                path:'article/:id',
                name:'article',
                component:article
            },
            {
                path:'apply',
                name:'apply',
                component:apply
            }
        ]
    }
];
export default routes;
